package chapter02;

import java.util.Scanner;

/**
 * Created by a on 2017/6/9.
 */
public class Test028 {
    public static void main(String[] args) {
        while (true) {
            Scanner scanner = new Scanner(System.in);
            System.out.println("请输入年份！");
            long year = scanner.nextLong();
            String notAndYes = (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) ? year + "是闰年" : year + "不是闰年";
            System.out.println(notAndYes);
        }
    }
}
